//
//  ZBCycleView.m
//  CycleVerticalView
//
//  Created by 周博 on 2019/1/8.
//  Copyright © 2019 EL. All rights reserved.
//

#import "ZBCycleView.h"
@interface ZBCycleView ()

@property (strong, nonatomic) UILabel *titleLabel;

@end

@implementation ZBCycleView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.font = FontMedium(15);
        _titleLabel.textColor = [UIColor whiteColor];
        [self addSubview:_titleLabel];
        
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    _titleLabel.frame = CGRectMake(10, 5, CGRectGetWidth(self.frame)-20, 30);
}

- (void)setDicData:(NSDictionary *)dicData{
    _dicData = dicData;
    _titleLabel.text = dicData[@"contents"];
}

@end
